﻿@using Company.Project.Infrastructure.Utility.BaseEnums
<div id="modaltest" class="modal fade" style="width: 100%;" tabindex="-1">
    <div class="modal-dialog" style="width: 90%;">
        <div class="modal-content">
            <form class="form-horizontal" enctype="multipart/form-data" id="formDetial" role="form">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h3 class="smaller lighter blue no-margin">部分封装功能演示</h3>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">日期控件</label>
                        <div class="col-sm-4">
                            <div class="clearfix">
                                <input type="text" id="PubDate" name="PubDate" required date="true" value="@DateTime.Now.ToString("yyyy-MM-dd")" placeholder="请输入发布日期" class="col-xs-10 col-sm-5">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">远程加载下拉列表</label>
                        <div class="col-sm-4">
                            <div class="clearfix">
                                <select class="input-medium" id="testdorp" name="testdorp" ajax-url="/Admin/Home/GetEnum_ApiResultCode?code=@Enum_ApiResultCode.Succ"></select>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">远程加载省市区</label>
                        <div class="col-sm-9">
                            <div class="clearfix">
                                <select class="input-medium detialprovinceId" id="ProvinceId" name="ProvinceId" ajax-url="/Admin/System/GetProvince?isEmpty=true"></select>
                                <select class="input-medium detialcityId" id="CityId" name="CityId"></select>
                                <select class="input-medium detialdistrictId" id="DistrictId" name="DistrictId"></select>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">测试文件上传(压缩文件)</label>
                        <div class="col-sm-9">
                            <div class="clearfix">
                                <input id="inputfile" type="button" value="上传"/>
                                <input id="downloadurl" name="downloadurl" type="hidden"/>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right"><span>测试图片上传(100*100)</span></label>
                        <div class="col-sm-9">
                            <div class="clearfix">
                                <input id="upimage" type="file">
                                <input type="hidden" name="smallImgUrl" id="smallImgUrl" data-imgwh="100*100" maxlength="200"/>
                                <input type="hidden" name="bigImgUrl" id="bigImgUrl" data-imgwh="200*200" maxlength="200"/>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right"><span>富文本编辑器</span></label>
                        <div class="col-sm-9">
                            <div class="clearfix">
                                <script id="myEditor" type="text/plain" style="height: 300px; width: 90%">
                                    @Html.Raw("<strong>测试内容</strong>")
                                </script>
                                <textarea style="display: none" id="Content" name="Content"></textarea>
                            </div>
                        </div>
                    </div>
					
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">日期时间控件</label>
                        <div class="col-sm-4">
                            <div class="clearfix">
                                <input type="text" id="PubDateTime" name="PubDateTime" required date="true" value="@DateTime.Now" placeholder="请输入发布日期" class="col-xs-10 col-sm-5">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <a class="btn btn-sm btn-success pull-right" id="openMsg">
                        <i class="ace-icon fa fa-check"></i>
                        弹出消息窗口
                    </a>
                    <a class="btn btn-sm btn-success pull-right" id="openMsgCall">
                        <i class="ace-icon fa fa-check"></i>
                        弹出消息窗口,带事件
                    </a>
                    <a class="btn btn-sm btn-success pull-right" id="openMsgCallParm">
                        <i class="ace-icon fa fa-check"></i>
                        弹出消息窗口,带事件+参数
                    </a>
                    <a class="btn btn-sm btn-success pull-right" id="openConfirmCall">
                        <i class="ace-icon fa fa-check"></i>
                        弹出确认窗口,带事件
                    </a>
                    <a class="btn btn-sm btn-success pull-right" id="openConfirmCallParm">
                        <i class="ace-icon fa fa-check"></i>
                        弹出确认窗口,带事件+参数
                    </a>
                    <a class="btn btn-sm btn-success pull-right" id="GetEditor">
                        <i class="ace-icon fa fa-check"></i>
                        获取富文本
                    </a>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="~/Areas/Admin/js/Home/Test.js"></script>